﻿
@using DevelopmentKit.Extensions.MvcContrib
@model DevelopmentKit.Web.Controllers.RoleViewModel
@{
    ViewBag.Title = "新建角色";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)   
     @Html.AntiForgeryToken()
    <fieldset>
        <legend>基本信息</legend>
        <ul class="list_form"> 
            <li>
                @Html.LabelFor(model => model.Name)   
                @Html.TextBoxFor(model => model.Name, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Name)
            </li>
         
            
            <li>
                @Html.LabelFor(model => model.Rights)       
                @Html.CheckBoxList("Rights", (ViewBag.Rights as List<SelectListItem>),new { @class = "checkboxlist" })   
            @Html.ValidationMessageFor(model => model.Rights)
            </li>
           
            <li>
                @Html.LabelFor(model => model.Remark)   
                @Html.TextAreaFor(model => model.Remark) 
                @Html.ValidationMessageFor(model => model.Remark)
            </li>
           
        </ul>
    </fieldset>
    
    <input type="submit" class="button-submit" value="保存" />
}

